import http from "@/utils/http/index";

// 实时行情
export const marketGet = (data: any) => {
  return http<any>({
    method: "GET",
    url: `/bjp/api.auth.market/get`,
    data,
  });
};
// 基差实时行情
export const getGebasisSpreadt = (data: any) => {
  return http<any>({
    method: "GET",
    url: `/bjp/api.market/getGebasisSpreadt`,
    data,
  });
};
// 可订阅的品类列表
export const getPolicyList = (data: any) => {
  return http<any>({
    method: "GET",
    url: `/bjp/api.auth.reminder/getPolicyList`,
    data,
  });
};
// 我的订阅列表
export const getReminderList = (data: any) => {
  return http<any>({
    method: "GET",
    url: `/bjp/api.auth.reminder/getList`,
    data,
  });
};
// 添加提醒
export const getSave = (data: any) => {
  return http<any>({
    method: "GET",
    url: `/bjp/api.auth.reminder/getSave`,
    data,
  });
};
// 删除提醒
export const remove = (data: any) => {
  return http<any>({
    method: "GET",
    url: `/bjp/api.auth.reminder/remove`,
    data,
  });
};
// 获取 jssdk 分享
export const jssdk = (data: any) => {
  return http<any>({
    method: "GET",
    url: `/bjp/api.wechat/jssdk`,
    data,
  });
};
// 到价提醒是否开启
export const getisMoneyRemind = (data: any) => {
  return http<any>({
    method: "GET",
    url: `/bjp/api.market/getisMoneyRemind`,
    data,
  });
};
